<?php

namespace app\api\validate;

use taoser\Validate;

class IndexValidate extends Validate
{
    protected $rule = [
        'name'      => 'require|length:4,25',
        'password'  => 'require'
    ];

    protected $message = [
        'name.require'      => '名字必须',
        'name.length'       => '名字长度应在4～25之间'
    ];


    protected $scene = [
        'hello'     => ['name']
    ];
}